Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU accelerated rendering & Mouse-handler optimization #146

Merged
merged 10 commits into from
May 22, 2024

Conversation

LeandroTreu
Copy link
Collaborator

@LeandroTreu LeandroTreu commented May 17, 2024

  • Fixed issue that prevented GPU acceleration for rendering
  • Further optimized mouse-handler hover computation
  • Moved summarize edges setting to performance section
  • Added Arrow LOD checks for deferred edges
  • Replaced ellipse drawing with native call

@LeandroTreu LeandroTreu requested review from phschaad and tbennun May 17, 2024 09:52
src/renderer/canvas_manager.ts Show resolved Hide resolved
// CanvasRenderingContext2D ellipse call as an alternative.
ctx.ellipse(x+w/2, y+h/2, w/2, h/2, 0, 0, 2 * Math.PI);

// const kappa = .5522848,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably makes sense to remove the commented out code

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -30,7 +30,7 @@ export class SDFVSettings {
'showStateNames': true,
'showMapSchedules': true,
'showDataDescriptorSizes': false,
'summarizeLargeNumbersOfEdges': false,
'summarizeLargeNumbersOfEdges': true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to leave the default on false for now since it's a very new feature that drastically changes the look of an SDFG in certain cases. It's something that people should gradually experiment with / evaluate for themselves first before we switch it to be the default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@phschaad phschaad merged commit 5f34f33 into master May 22, 2024
2 checks passed
@tbennun tbennun deleted the ltreu-sa-hrendering branch August 20, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants